<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm', true), array('action' => 'add')); ?></li>
	</ul>
</div>
<div class="view">
<h2><?php __('Danh mục hoạt chất');?></h2>
<p>
<?php
$paginator->options(array('url'=>$this->passedArgs));
echo $paginator->counter(array(
'format' => __('Hiện có %count% mẫu tin - Trang %page%/%pages%', true)
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<th><?php echo $paginator->sort('STT','id');?></th>
	<th><?php echo $paginator->sort('Tên hoạt chất','ten_hc');?></th>
	<th><?php echo $paginator->sort('Ghi chú','ghichu');?></th>
	<th><?php __('Hành Động');?></th>
</tr>
<?php
$i = 0;$j=1;
foreach ($hoatchats as $hoatchat):
?>
	<tr>
		<td>
			<?php 
            echo $j; $j++;
            //echo $hoatchat['Hoatchat']['id']; ?>
		</td>
		<td>
			<?php echo $hoatchat['Hoatchat']['ten_hc']; ?>
		</td>
		<td>
			<?php echo $hoatchat['Hoatchat']['ghichu']; ?>
		</td>
		<td class="actions">
			<?php //echo $html->link(__('View', true), array('action' => 'view', $hoatchat['Hoatchat']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $hoatchat['Hoatchat']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $hoatchat['Hoatchat']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hoatchat['Hoatchat']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('Trước', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('Sau', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>